# it=iter("你的名字是？")
# print(next(it))
# print(next(it))
# print(next(it))
# print(next(it))
# print(next(it))
# print(next(it))
# print(it.__next__())
# print(it.__next__())
# print(it.__next__())
# print(it.__next__())
# print(it.__next__())
# print(it.__next__())
# print(it.__next__())

# #模拟for循环工作原理
# s="测试数据1"
# it=s.__iter__()
# while (1):
#     try:
#         data = next(it)
#         # data=it.__next__()
#         print(data)
#     except StopIteration:
#         break


# s="测试数据2"
# it=s.__iter__()
it = iter("测试数据2")
for i in it:
    print(i)
